Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IntervalArray<T> Class / TryGet Method
The zero-based index of the element to get or set.
The T value represents the value at the specified position.


In This Topic
    TryGet Method
    In This Topic
    Gets or sets the element T at the specified index.
    Syntax
    'Declaration
     
    
    Public Function TryGet( _
       ByVal index As Integer, _
       ByRef value As T _
    ) As Boolean
    'Usage
     
    
    Dim instance As IntervalArray(Of T)
    Dim index As Integer
    Dim value As T
    Dim value As Boolean
     
    value = instance.TryGet(index, value)
    public bool TryGet( 
       int index,
       out T value
    )

    Parameters

    index
    The zero-based index of the element to get or set.
    value
    The T value represents the value at the specified position.

    Return Value

    The element at the specified index.
    See Also